package com.xuecheng.content.feignclient.auth;

import com.xuecheng.auth.model.po.XcTeacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value="auth-api",path="/auth",contextId="teacher",
        fallbackFactory=XcTeacherClientFactory.class)
@RequestMapping("/teacher")
public interface XcTeacherClient {
    @GetMapping
    public XcTeacher getTeacher(@RequestBody XcTeacher teacher);

    @PostMapping
    XcTeacher saveTeacher(@RequestBody XcTeacher teacher);
}
